package de.greenrobot.daoexample.model;

import java.io.Serializable;

/**
 * Created by squall on 2016/5/18.
 */
public class MixTag implements Serializable {

    private String id;
    private String name;
    private String type;

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getType() {
        return type;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public int hashCode() {
        if (this.type.equals("work")) {
            return (this.getName() + "work").hashCode();
        } else {
            return this.getName().hashCode();
        }
    }
}
